package com.netrust.cmsx.persist.module.sys;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.netrust.cmsx.core.persist.BaseDao;
import com.netrust.cmsx.entity.module.sys.Role;
import com.netrust.cmsx.entity.module.sys.User;

public interface UserDao extends BaseDao<User, String>{
	

	public User findByLoginName(String LoginName);

	public Page<User> findByLoginFlagAndRoles(String b, Role role, Pageable pr);

	public User findByLoginNameAndPasswordAndLoginFlag(String account, String password, String enableUser);
	
}
